
# 使用urllib来获取源码
import urllib.request

# 时间
from datetime import date

today = date.today()

# (1)定义一个url  就是你要访问的地址 str(today)
Indexhtmlurl ='https://gitee.com/api/v5/repos/ya-ning-liu/daily_test/raw/report/checksec/'+'2024-03-13'+'/Index.html?access_token=e08d7a7f773e6976a91b4bf8bff43d38&ref=master'

FailedFileListurl ='https://gitee.com/api/v5/repos/ya-ning-liu/daily_test/raw/report/checksec/'+'2024-03-13'+'/failed%20files%20list.html?access_token=e08d7a7f773e6976a91b4bf8bff43d38&ref=master'

TotalFileListurl ='https://gitee.com/api/v5/repos/ya-ning-liu/daily_test/raw/report/checksec/'+'2024-03-13'+'/total%20file%20list.html?access_token=e08d7a7f773e6976a91b4bf8bff43d38&ref=master'


urllib.request.urlretrieve(Indexhtmlurl,'Index.html')
urllib.request.urlretrieve(FailedFileListurl,'failed file list.html')
urllib.request.urlretrieve(TotalFileListurl,'total file list.html')